<template>
    <div>
       <header class="header">
         <i class="iconfont icon-fanhui head-left" @click="goBack"></i>
         <h2><slot></slot></h2>
       </header>
    </div>
</template>

<script>
    export default {
        data() {
            return {}
        },
        methods:{
          goBack(){
             this.$router.go(-1)
          }
        }
    }
</script>

<style lang="stylus" scoped>
  .header
    height: 43px;
    position relative
    line-height: 43px;
    background: #00bcd4;
    color: #fff;
    width: 100%;
    display: flex;
    .head-left
      position absolute
      width:50px;
      height 100%
      top 0
      left 0
      text-align center
    h2
      flex 1
      text-align center
</style>
